package cn.xydpeng.springframework.context;

/**
 * @author xydpeng
 * @version v1.0
 * @date: 2022/10/21
 * @description:  支持事件
 */
@FunctionalInterface
public interface ApplicationEventPublisher {

    default void publishEvent(ApplicationEvent event) {
        publishEvent((Object) event);
    }

    void publishEvent(Object event);

}
